import Vue from "vue";



import VueRouter from "vue-router";

Vue.use(VueRouter)




const routes  = [
    {
        name:'Layout',
        path:'/',
        meta:{
            isAuthor:true
        },
        redirect:'/Dashboard',
        component:()=> import('../views/Layout/Layout.vue'),
        children:[
            {
                name:'Dashboard',
                path:'Dashboard',
                component:()=> import('../views/Layout/Dashboard.vue'),

            },
            {
                //基础设置
                name:'MasterData',
                path:'MasterData',
                component:()=> import('../views/MasterData/MasterData.vue'),
                children:[
                    {
                        //计量单位
                        name:'UnitMeasure',
                        path:'UnitMeasure',
                        component:()=> import('../views/MasterData/MasterDataView/UnitMeasure.vue'),
                    }
                ]
            },
            {
                //产品管理
                name:'Product',
                path:'Product',
                component:()=> import('../views/Product/Product.vue'),
                children:[
                    {
                        //盘号
                        name:'PanHao',
                        path:'PanHao',
                        component:()=> import('../views/Product/ProductView/PanHao.vue'),
                    },
                    {
                        //颜色
                        name:'Color',
                        path:'Color',
                        component:()=> import('../views/Product/ProductView/Color.vue'),
                    },
                    {
                        //型号
                        name:'Model',
                        path:'Model',
                        component:()=> import('../views/Product/ProductView/Model.vue'),
                    },
                    {
                        //规格
                        name:'Spec',
                        path:'Spec',
                        component:()=> import('../views/Product/ProductView/Spec.vue'),
                    },
                    {
                        //类别
                        name:'ItemType',
                        path:'ItemType',
                        component:()=> import('../views/Product/ProductView/ItemType.vue'),
                    },
                    {
                        //物料产品
                        name:'Item',
                        path:'Item',
                        component:()=> import('../views/Product/ProductView/Item.vue'),
                    }
                ]
            },
            {
                //设备管理
                name:'Device',
                path:'Device',
                component:()=> import('../views/Device/Device.vue'),
                children:[
                    {
                        //设备类型
                        name:'MachineryType',
                        path:'MachineryType',
                        component:()=> import('../views/Device/DeviceView/MachineryType.vue'),
                    },
                    {
                        //设备状态
                        name:'MachineryStatus',
                        path:'MachineryStatus',
                        component:()=> import('../views/Device/DeviceView/MachineryStatus.vue'),
                    },
                    {
                        //设备
                        name:'Machinery',
                        path:'Machinery',
                        component:()=> import('../views/Device/DeviceView/Machinery.vue'),
                    }
                ]
            },
            {
                //车间管理
                name:'Works',
                path:'Works',
                component:()=> import('../views/Works/Works.vue'),
                children:[
                    {
                        //车间设置
                        name:'Workshop',
                        path:'Workshop',
                        component:()=> import('../views/Works/WorksView/Workshop.vue'),
                    },
                    {
                        //工作站管理
                        name:'Workstation',
                        path:'Workstation',
                        component:()=> import('../views/Works/WorksView/Workstation.vue'),
                    }
                ]
            },
            {
                //工艺管理
                name:'ProductProcess',
                path:'ProductProcess',
                component:()=> import('../views/ProductProcess/ProductProcess.vue'),
                children:[
                    {
                        //工艺设置
                        name:'ProProcess',
                        path:'ProProcess',
                        component:()=> import('../views/ProductProcess/ProductProcessView/ProProcess.vue'),
                    },
                    {
                        //工艺流程
                        name:'ProRoute',
                        path:'ProRoute',
                        component:()=> import('../views/ProductProcess/ProductProcessView/ProRoute.vue'),
                    }
                ]
            },
            {
                //排班管理
                name:'Plans',
                path:'Plans',
                component:()=> import('../views/Plans/Plans.vue'),
                children:[
                    {
                        //班级类型
                        name:'TeamType',
                        path:'TeamType',
                        component:()=> import('../views/Plans/PlansView/TeamType.vue')
                    },
                    {
                        //班组设置
                        name:'Team',
                        path:'Team',
                        component:()=> import('../views/Plans/PlansView/Team.vue')
                    },
                    {
                        //排班计划
                        name:'PlanTeam',
                        path:'PlanTeam',
                        component:()=> import('../views/Plans/PlansView/PlanTeam.vue')
                    },
                    {
                        //排班日历
                        name:'PlanCalendar',
                        path:'PlanCalendar',
                        component:()=> import('../views/Plans/PlansView/PlanCalendar.vue')
                    }
                ]
            },
            {
                //生产管理
                name:'Productions',
                path:'Productions',
                component:()=> import('../views/Productions/Productions.vue'),
                children:[
                    {
                        //生产订单
                        name:'ProWorkorder',
                        path:'ProWorkorder',
                        component:()=> import('../views/Productions/ProductionsView/ProWorkorder.vue')
                    },
                    {
                        //生产排产
                        name:'ProWorkScheduling',
                        path:'ProWorkScheduling',
                        component:()=> import('../views/Productions/ProductionsView/ProWorkScheduling.vue')
                    },
                    {
                        //生产报工记录表
                        name:'ProFeedback',
                        path:'ProFeedback',
                        component:()=> import('../views/Productions/ProductionsView/ProFeedback.vue')
                    },
                    {
                        //生产报工工时记录表
                        name:'ProFeedbackHours',
                        path:'ProFeedbackHours',
                        component:()=> import('../views/Productions/ProductionsView/ProFeedbackHours.vue')
                    },
                    {
                        //生产任务
                        name:'ProTask',
                        path:'ProTask',
                        component:()=> import('../views/Productions/ProductionsView/ProTask.vue')
                    },
                    {
                        //报工设备
                        name:'ProFeedbackEquipment',
                        path:'ProFeedbackEquipment',
                        component:()=> import('../views/Productions/ProductionsView/ProFeedbackEquipment.vue')
                    },
                    {
                        //报工设备状态表
                        name:'ProFeedbackEquStatus',
                        path:'ProFeedbackEquStatus',
                        component:()=> import('../views/Productions/ProductionsView/ProFeedbackEquStatus.vue')
                    },
                    {
                        //工时填报表
                        name:'ProHoursReporting',
                        path:'ProHoursReporting',
                        component:()=> import('../views/Productions/ProductionsView/ProHoursReporting.vue')
                    },
                    {
                        //工时类型
                        name:'ProWorkhoursType',
                        path:'ProWorkhoursType',
                        component:()=> import('../views/Productions/ProductionsView/ProWorkhoursType.vue')
                    },
                    {
                        //临时工时
                        name:'ProTemporaryWorkHours',
                        path:'ProTemporaryWorkHours',
                        component:()=> import('../views/Productions/ProductionsView/ProTemporaryWorkHours.vue')
                    }
                ]
            },
            {
                //检验标准
                name:'Examine',
                path:'Examine',
                component:()=> import('../views/Examine/Examine.vue'),
                children:[
                    {
                        //检验方式
                        name:'QcWay',
                        path:'QcWay',
                        component:()=> import('../views/Examine/ExamineView/QcWay.vue')
                    },
                    {
                        //检验器具
                        name:'QcProjectDevice',
                        path:'QcProjectDevice',
                        component:()=> import('../views/Examine/ExamineView/QcProjectDevice.vue')
                    },
                    {
                        //检测项目分类
                        name:'QcProjectClassify',
                        path:'QcProjectClassify',
                        component:()=> import('../views/Examine/ExamineView/QcProjectClassify.vue')
                    },
                    {
                        //检测项设置
                        name:'QcProject',
                        path:'QcProject',
                        component:()=> import('../views/Examine/ExamineView/QcProject.vue')
                    },
                    {
                        //工序检测标准
                        name:'QcProcessStandard',
                        path:'QcProcessStandard',
                        component:()=> import('../views/Examine/ExamineView/QcProcessStandard.vue')
                    },
                    {
                        //缺陷
                        name:'QcProjectLevel',
                        path:'QcProjectLevel',
                        component:()=> import('../views/Examine/ExamineView/QcProjectLevel.vue')
                    },
                    {
                        //来料检验单
                        name:'QcReceiveRecord',
                        path:'QcReceiveRecord',
                        component:()=> import('../views/Examine/ExamineView/QcReceiveRecord.vue')
                    },
                    {
                        //来料检验标准
                        name:'QcReceiveStandard',
                        path:'QcReceiveStandard',
                        component:()=> import('../views/Examine/ExamineView/QcReceiveStandard.vue')
                    }
                ]
            },
            {
                //工序检验
                name:'ProcessExamine',
                path:'ProcessExamine',
                component:()=> import('../views/ProcessExamine/ProcessExamine.vue'),
                children:[
                    {
                        //检验单据
                        name:'QcProcessRecord',
                        path:'QcProcessRecord',
                        component:()=> import('../views/ProcessExamine/ProcessExamineView/QcProcessRecord.vue')
                    },
                    {
                        //工序检验单图片存放表
                        name:'QcProcessPicture',
                        path:'QcProcessPicture',
                        component:()=> import('../views/ProcessExamine/ProcessExamineView/QcProcessPicture.vue')
                    },
                    {
                        //工序检验对比表
                        name:'QcProcessRecordItem',
                        path:'QcProcessRecordItem',
                        component:()=> import('../views/ProcessExamine/ProcessExamineView/QcProcessRecordItem.vue')
                    },
                    {
                        //工序检验结果表
                        name:'QcProcessRecordResult',
                        path:'QcProcessRecordResult',
                        component:()=> import('../views/ProcessExamine/ProcessExamineView/QcProcessRecordResult.vue')
                    }
                ]
            },
            {
                name:'Integrated',
                path:'Integrated',
                component:()=> import('../views/Integrated/Integrated.vue'),
                children:[
                    {
                        //供应商管理表
                        name:'Vendor',
                        path:'Vendor',
                        component:()=> import('../views/Integrated/IntegratedView/Vendor.vue')
                    },
                    {
                        //客户管理表
                        name:'Client',
                        path:'Client',
                        component:()=> import('../views/Integrated/IntegratedView/Client.vue')
                    }
                ]
            },
            {
                //销售订单
                name:'SalesOrder',
                path:'SalesOrder',
                component:()=> import('../views/SalesOrder/SalesOrder.vue'),
                children:[
                    {
                        //客户报价单
                        name:'OrderQuote',
                        path:'OrderQuote',
                        component:()=> import('../views/SalesOrder/SalesOrderView/OrderQuote.vue')
                    },
                    {
                        //报价单明细
                        name:'OrderQuoteItem',
                        path:'OrderQuoteItem',
                        component:()=> import('../views/SalesOrder/SalesOrderView/OrderQuoteItem.vue')
                    },
                    {
                        //物料价格
                        name:'OrderSaleItemPrice',
                        path:'OrderSaleItemPrice',
                        component:()=> import('../views/SalesOrder/SalesOrderView/OrderSaleItemPrice.vue')
                    },
                    {
                        //销售订单表
                        name:'OrderSale',
                        path:'OrderSale',
                        component:()=> import('../views/SalesOrder/SalesOrderView/OrderSale.vue')
                    },
                    {
                        //销售出库
                        name:'OrderSalesExWarehouse',
                        path:'OrderSalesExWarehouse',
                        component:()=> import('../views/SalesOrder/SalesOrderView/OrderSalesExWarehouse.vue')
                    }
                ]
            },
            {
                //库存管理
                name:'Stock',
                path:'Stock',
                component:()=> import('../views/Stock/Stock.vue'),
                children:[
                    {
                        //生产领料
                        name:'OrderProductPick',
                        path:'OrderProductPick',
                        component:()=> import('../views/Stock/StockView/OrderProductPick.vue')
                    },
                    {
                        //生产退料
                        name:'OrderProductReceive',
                        path:'OrderProductReceive',
                        component:()=> import('../views/Stock/StockView/OrderProductReceive.vue')
                    },
                    {
                        //销售订单模块-PC扫码出库表
                        name:'OrderOutbound',
                        path:'OrderOutbound',
                        component:()=> import('../views/Stock/StockView/OrderOutbound.vue')
                    },
                    {
                        //PC扫码出库明细表
                        name:'OrderOutboundItem',
                        path:'OrderOutboundItem',
                        component:()=> import('../views/Stock/StockView/OrderOutboundItem.vue')
                    },
                    {
                        //扫码出库数量统计记录表
                        name:'OrderOutboundRecord',
                        path:'OrderOutboundRecord',
                        component:()=> import('../views/Stock/StockView/OrderOutboundRecord.vue')
                    },
                    {
                        //库存查询
                        name:'ItemStock',
                        path:'ItemStock',
                        component:()=> import('../views/Stock/StockView/ItemStock.vue')
                    },
                    
                    {
                        //其他入库
                        name:'OtherWareHouse',
                        path:'OtherWareHouse',
                        component:()=> import('../views/Stock/StockView/OtherWareHouse.vue')
                    },
                    {
                        //其他出库
                        name:'OtherExWareHouse',
                        path:'OtherExWareHouse',
                        component:()=> import('../views/Stock/StockView/OtherExWareHouse.vue')
                    },
                    {
                        //仓库调拨
                        name:'WareHouseAllocation',
                        path:'WareHouseAllocation',
                        component:()=> import('../views/Stock/StockView/WareHouseAllocation.vue')
                    }

                ]
            },
            {
                //采购单
                name:'PurchaseOrder',
                path:'PurchaseOrder',
                component:()=> import('../views/PurchaseOrder/PurchaseOrder.vue'),
                children:[
                    {
                        //采购单表
                        name:'OrderPo',
                        path:'OrderPo',
                        component:()=> import('../views/PurchaseOrder/PurchaseOrderView/OrderPo.vue')
                    },
                    {
                        //到货通知
                        name:'WareHouseInboundBill',
                        path:'WareHouseInboundBill',
                        component:()=> import('../views/PurchaseOrder/PurchaseOrderView/WareHouseInboundBill.vue')
                    },
                    {
                        //采购入库表
                        name:'WhPoInbound',
                        path:'WhPoInbound',
                        component:()=> import('../views/PurchaseOrder/PurchaseOrderView/WhPoInbound.vue')
                    },
                    {
                        //其他采购入库表
                        name:'WhOtherPoInbound',
                        path:'WhOtherPoInbound',
                        component:()=> import('../views/PurchaseOrder/PurchaseOrderView/WhOtherPoInbound.vue')
                    }
                ]
            },
            {
                //退货
                name:'ReturnOrder',
                path:'ReturnOrder',
                component:()=> import('../views/ReturnOrder/ReturnOrder.vue'),
                children:[
                    {
                        //客户退货表
                        name:'OrderReturn',
                        path:'OrderReturn',
                        component:()=> import('../views/ReturnOrder/ReturnOrderView/OrderReturn.vue')
                    },
                    {
                        //采购退货表
                        name:'OrderPoReturn',
                        path:'OrderPoReturn',
                        component:()=> import('../views/ReturnOrder/ReturnOrderView/OrderPoReturn.vue')
                    }
                ]
            },
            {
                //仓库管理
                name:'StoreHouse',
                path:'StoreHouse',
                component:()=> import('../views/StoreHouse/StoreHouse.vue'),
                children:[
                    {
                        //仓库表
                        name:'Warehouse',
                        path:'Warehouse',
                        component:()=> import('../views/StoreHouse/StoreHouseView/Warehouse.vue')
                    },
                    {
                        //库区表
                        name:'WmWarehouseArea',
                        path:'WmWarehouseArea',
                        component:()=> import('../views/StoreHouse/StoreHouseView/WmWarehouseArea.vue')
                    },
                    {
                        //库位表
                        name:'WmWarehouseLocation',
                        path:'WmWarehouseLocation',
                        component:()=> import('../views/StoreHouse/StoreHouseView/WmWarehouseLocation.vue')
                    }
                ]
            },
            {
                //OA相关
                name:'OA',
                path:'OA',
                component:()=> import('../views/OA/OA.vue'),
                children:[
                    {
                        //请假申请表
                        name:'BpmOaLeave',
                        path:'BpmOaLeave',
                        component:()=> import('../views/OA/OAView/BpmOaLeave.vue')
                    },
                    {
                        //职工表
                        name:'Employees',
                        path:'Employees',
                        component:()=> import('../views/OA/OAView/Employees.vue')
                    },
                    {
                        //部门表
                        name:'Department',
                        path:'Department',
                        component:()=> import('../views/OA/OAView/Department.vue')
                    },
                    {
                        //考勤表
                        name:'PlanShiftAttendance',
                        path:'PlanShiftAttendance',
                        component:()=> import('../views/OA/OAView/PlanShiftAttendance.vue')
                    },
                    {
                        //岗位信息表
                        name:'SystemPost',
                        path:'SystemPost',
                        component:()=> import('../views/OA/OAView/SystemPost.vue')
                    },
                ]
            }
        ]
    },
    {
        name:'Login',
        path:'/Login',
        component:()=> import('../views/Account/Login.vue')
    }
];



const  router = new VueRouter({
    routes:routes,
    mode:'hash'
});




export default router;
